home *** CD-ROM | disk | FTP | other *** search
- Path: sn.no!not-for-mail
- From: christon@sn.no (Christopher Naas)
- Newsgroups: comp.sys.amiga.programmer
- Subject: V43 picture datatype
- Date: 27 Mar 1996 19:05:01 +0100
- Organization: SN Internett
- Message-ID: <1918.6660T1145T254@sn.no>
- NNTP-Posting-Host: sinsen.sn.no
- X-Newsreader: THOR 2.21 (Amiga;SOUP)
-
- I have a couple of questions about transparency and the picture.datatype.
-
-
- 1. Picture datatype returns the wrong transparency color in the BitMapHeader
- when the picture is remapped to a screen.
- - Is this intentional?
- - Is there a way to obtain the new transparency color?
-
- 2. I have noticed that the new picture.datatype has an interesting tag:
-
- PDTA_MaskPlane (ULONG) -- V43
- If a transparent,mask,alpha flags are set in
- BitMapHeader.bmh_Masking you can get or set the
- mask plane by this tag.
- The maskplane can be used at for BltBitMapRastPort().
-
- But how do I use it? If I do:
-
- ULONG tst;
-
- PDTA_MaskPlane, tst,
-
- ..I get hits.
-
- if I do:
-
- PDTA_MaskPlane, &tst,
-
- .. tst is filled with a value.
-
-
- How do I use this? I'm guessing that the above reference to Blt..
- is a typo and should be a reference to BltMaskBitMapRastPort, and that
- PDTA_MaskPlane (tst) should be used as the mask.
-
- This does, however, not work.
-
- passing tst as the mask results in a blank picture, passing &tst, results
- in colors other than the transparency color dissapearing (several colors
- are missing).
-
- Should I fill a 1 plane bitmap with this value and use Plane[0] as the
- mask? PDTA_MaskPlane is defined as an ULONG, but a mask is supposed to
- consist of bytes, the same width and height as the original bitmap.
-
-
- 3. The new picture datatype does not support TAG_IGNORE, instead it gives
- a couple of Enforcer hits.
-
- 4. How do I get the correct transparency pen when loading a picture through
- datatypes with remapping, and how do I generate a mask for use with
- BltMaskBitMapRastPort()? I need to support both the 24bit picture datatype
- and the original OS3.0/3.1 one.
-
-
- --
- Christopher Landmark Naas o EMail: christon@sn.no
- LoungeBar Development o WWW: http://www.sn.no/~christon/
- Former Reg. Amiga Developer o IRC: KarmaComa
-